package Java多线程技术.第3章.一生产多消费;

public class PThread2 extends Thread{

    private P2 p;

    public PThread2(P2 p) {
        this.p = p;
    }


    @Override
    public void run() {
        while (true) {
            p.pushService();
        }
    }
}
